package A_java语言的新特性.d.重复注解.自定义注解;

import java.lang.annotation.*;

/**
 * Created by zc on 2017/3/10.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FruitColor {
    /**
     * 颜色枚举
     */
    public enum Color{GREEN, RED, YELLOW};

    /**
     * 颜色属性
     */
    Color fruitColor() default Color.GREEN;
}
